﻿using Microsoft.EntityFrameworkCore;

namespace CRM.Models.Mailjet
{
    public class WebhookEventDetails : BaseModel
    {
        [Comment("id")]
        public int Id { get; set; } 
        [Comment("原始请求记录id")]
        public int WebhookLogId { get; set; }
        [Comment("事件类型")]
        public string Event { get; set; }
        [Comment("时间（2038-01-19 11:14:07截至日期）")]
        public int Time { get; set; }
        [Comment("email address of recipient triggering the event")]
        public string Email { get; set; }
        [Comment("internal Mailjet campaign ID associated to the message")]
        public int MjCampaignId { get; set; }
        [Comment(" internal Mailjet contact ID")]
        public int MjContactId { get; set; }
        [Comment("value of the X-Mailjet-Campaign header when provided")]
        public string CustomCampaign { get; set; }
        [Comment("The unique message ID")]
        public long MessageId { get; set; }
        [Comment("the custom ID, when provided at send time")]
        public string CustomId { get; set; } 
        [Comment("the event payload, when provided at send time")]
        public string Payload { get; set; }
        [Comment("详细信息")]
        public string Data { get; set; }
    }
}